<html>
<head>
<script type="text/javascript">
function OnGetClick()
{
	var selection = document.myform.users;
	for (i=0; i<selection.length; i++)
	{
		if (selection[i].checked == true)
			window.opener.document.getElementById("tCreatedBy").value = selection[i].value;
	}
			
	self.close();
}
</script>
</head>

<body>
<form name="myform">
<?php 
$users = $this->users;
$numUsers = $this->numUsers;
foreach($users as $user)
{
	echo "<input type=\"radio\" name=\"users\" value=\"{$user['Name']}\" />{$user['Name']}<br>";
}
?>
<input type="button" value="Choose" onclick="OnGetClick()"></input>
</form>
</body>
</html>